﻿namespace MicroCloud.Identity.Entities
{
    /// <summary>
    /// 实体类：组织机构证照
    /// </summary>
    [Description("组织机构证照")]
    [ValueGenerate(ValueGenerateRule.Never, ValueGenerateMode.Snowflake)]
    [Table(nameof(OrganizationPortfolio), Schema = TableSchemaConstants.Identity)]
    public class OrganizationPortfolio : EntityBase<long>
    {
        #region 属性
        /// <summary>
        /// 获取或设置 组织机构编号
        /// </summary>
        [Column("OrganizationId")]
        [DisplayName("组织机构编号")]
        public long OrganizationId { get; set; }

        #region "获取或设置 电子头像"
        private string _Avatar = "";
        /// <summary>
        /// 获取或设置 电子头像
        /// </summary>
        [Column("Avatar")]
        [StringMax]
        [DisplayName("电子头像")]
        public string Avatar { get { return _Avatar; } set { _Avatar = value.ReplaceNull(); } }
        #endregion
        #region "获取或设置 电子签名"
        private string _Signature = "";
        /// <summary>
        /// 获取或设置 电子签名
        /// </summary>
        [Column("Signature")]
        [StringMax]
        [DisplayName("电子签名")]
        public string Signature { get { return _Signature; } set { _Signature = value.ReplaceNull(); } }
        #endregion

        //导航属性
        #region "获取或设置 所属组织机构信息"
        /// <summary>
        /// 获取或设置 所属组织机构信息
        /// </summary>
        [JsonIgnore]
        public virtual Organization Organization { get; set; }
        #endregion

        #endregion

    }
}